package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum BankType {
    ALIPAY(1,"支付宝"), CCB(2,"建设银行"), BOC(3,"中国银行")
    , BANKCOMM(4,"交通银行"), ICBC(5,"工商银行"), ECITIC(6,"中信银行")
    , CIB(7,"兴业银行"), ABCHINA(8,"农业银行"), CMBCHINA(9,"招商银行")
    , CMBC(10,"民生银行"), CEBBANK(11,"光大银行");

    private int code;
    private String name;
    BankType(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<BankType> getAllData(){
        List<BankType> result = new ArrayList<BankType>();
        for (BankType current : BankType.values())
        {
            result.add(current);
        }
        return result;
    }

//    public static void main(String[] args) {
//        for(ChannelType c : getAllChannel()){
//            System.out.print(c.getName());
//        }
//    }
}
